home *** CD-ROM | disk | FTP | other *** search
/ The CICA Windows Explosion! / The CICA Windows Explosion! - Disc 2.iso / misc / wb_41e.zip / RECENT.TX_ < prev    next >
Text File  |  1993-08-23  |  6KB  |  178 lines

  1. Note:  In this current beta release....
  2.   
  3.        NT Versions
  4.            File Commands only support the 8.3 FAT file system 
  5.            Do not attempt to use commands like FileCopy, FileOpen
  6.            etc with NTFS or HPFS partitions    
  7.  
  8.  
  9. debugdata(String,String)
  10.         Dumps data via the Windows OutputDebugString to your default
  11.         destination
  12.     
  13.         a=5
  14.         DebugData("Value of A is",a)
  15.     
  16. winisdos(WindowName)
  17.         Tells whether or not a particular window is a DOS window.  
  18.     
  19.        a=WinIsDOS("Command")
  20.        if a==@TRUE then Message("command.com","is a DOS window")
  21.     
  22. gettickcount(void)
  23.         Returns number of clock ticks since Windows started
  24.         
  25.         Message("Clock Ticks",GetTickCount())
  26.                
  27. getexacttime(void)
  28.         Returns current time in hundredths of a second
  29.         
  30.         Message("Time is",GetExactTime())
  31.         
  32. shellexecute(who,params,how,wait)
  33.         Executes programs via the Windows ShellExecute function
  34.         
  35.         ShellExecute("notepad.exe","c:\config.sys",@NORMAL,@NOWAIT)
  36.                                                    @ZOOMED @WAIT
  37.                                                    @ICON
  38.                                                    @HIDDEN
  39.          
  40. shellprint(program/file ,params, how, wait)
  41.         Calls the Windows ShellExecute function to print data. 
  42.         
  43.         ShellPrint("Stuff.txt","",@NORMAL,@NOWAIT)
  44.            
  45.      
  46. objectopen(progidname)
  47.         Creates an Ole Object for Ole Automation to occur.
  48.         See OLECALC.WBT and OLEPOLY.WBT
  49.         
  50.         ObjectName=ObjectOpen("display.ccalc")
  51.  
  52.    
  53. objectclose(ObjectName)
  54.         Terminates an Ole Object.
  55.         See OLECALC.WBT and OLEPOLY.WBT
  56.         
  57. runexit(who,params)
  58.         Exits windows, runs a DOS program, and restarts windows when DOS
  59.         program exits.  Great for running batch files outsize of Windows.
  60.         
  61.         
  62.          
  63.          
  64. regopenkey(handle,string)
  65.         Returns handle to key.  For root key use @REGROOT
  66.                   
  67. regcreatekey(handle,string) 
  68.         Returns handle to key.  For root key use @REGROOT
  69.         
  70. regclosekey(handle)
  71.         Closes a key
  72.           
  73. regdeletekey(handle,string)
  74.         Deletes a key
  75.         
  76. regsetvalue(handle,string,value)
  77.         Sets a value in the reg database
  78.           
  79. regqueryvalue(handle,string)
  80.         Retuns valuse in a string
  81.         
  82. regquerykey(handle,index)
  83.         Returns name string at index position  (SDK Guys...see RegEnumKey)  
  84.         
  85.         
  86.         
  87.      
  88. environset(name,value)
  89.         Changes LOCAL Environment variables  (Also see Environment in manual)
  90.         Does not increase environment size, so to add new values, you must
  91.         delete something first.
  92.         
  93.         Environset("DUMMY","")      ; Free up some space first
  94.         EnvironSet("FLAGCITY","-a-b-c-d-e /4/5 -Fc")
  95.    
  96. runenviron (who,params,how,wait)
  97.         Launches a program and has it inheirit the current environment as set
  98.         with the environset command.
  99.   
  100. exetypeinfo(EXENAME)
  101.         Returns interger describing type of EXE file specified
  102.         
  103.         a=ExeTypeInfo("notepad.exe")
  104.         
  105.         0=Not an EXE file
  106.         1=DOS
  107.         2=Windows
  108.         3=NT, etc....not implemented yet.  Have they settled on the NT EXE
  109.               file format yet???
  110.   
  111. envitemize()
  112.         Returns a \n delimited list of the current environment
  113.         
  114.         Message("Da Environment is",envitemize())
  115.          
  116.         
  117.  
  118.   KeyToggleGet(@key)    returns the status of a toggle key, either @ON or @OFF
  119.   KeyToggleSet(@key,value) returns old state of key and sets new state
  120.  
  121.     @key may be one of the following:
  122.             @CAPSLOCK
  123.             @NUMLOCK
  124.             @SCROLLLOCK
  125.     value may be @ON or @OFF
  126.     
  127.     
  128. DllCall(dllname,entrypointname,parameters)
  129.  
  130.     as in:
  131.         Answer=DllCall("MYOWN.DLL","DoitToit","123 4567 'A Few Params'") 
  132.         
  133.         The DLL entrypoint must be written per:
  134.         
  135.         Win16
  136.            GLOBALHANDLE FAR PASCAL DoitToit(HWND,LPSTR)
  137.         WINNT
  138.            GLOBALHANDLE DoitToit(HWND,LPSTR)
  139.         
  140.          Any return value by the DLL must be in a szString format in
  141.          a GlobalMemory object.  The Object must be unlocked when
  142.          the the DLL returns.  The DllCall processor will lock the object,
  143.          transfer the contents to variable string storage, unlock the
  144.          object and GlobalFree the object.  It is recommended that
  145.          restraint be used in returning large strings.  4K should be 
  146.          considered a maximum.  16K will be very unreliable (3096 out of
  147.          memory for string storage).  32k will always fail.  Numeric
  148.          responses must be converted to ascii strings.   There should be
  149.          a sample DLL build for this by the time we really ship.
  150.          
  151.             
  152. IconReplace("FILENAME.EXE","ICONFILE.ICO")
  153.     Icon replace will preform surgery on an EXE file and replace the first icon in the EXE file
  154.     with the icon in the ICO file.  The icon in the ICO file must be the same size or smaller
  155.     then the icon in EXE file.  It is suggested that due caution be used when using this command
  156.     as the following conditions may occur:
  157.         1) EXE file might become damaged and unable to run.  This is especially true of
  158.            some programs that checksum themselves to verify the EXE.  Keep backups.
  159.         2) System anti-virus tools might detect the alteration of an EXE file and complain.
  160.            If this is true, then either the anti-virus program must be disabled, or another
  161.            workaround must be used.  Some Anti-virus programs allow the specification of a
  162.            "trusted" program - the trusted feature may be used with due caution.
  163.  
  164.  
  165.  
  166. SendKeyTo("WindowName","Sendkeystring")
  167.     Similiar to SendKey, but the window "WindowName" will be activated before sending any keys.
  168.  
  169.  
  170.  
  171. SendMenuTo("WindowName","MenuName") 
  172.     Will activate "WindowName", Search its menus for "MenuName", and post the appropriate WIndows
  173.     windows message for the menu operation.
  174.  
  175.               
  176.            
  177.  
  178.